package com.handpay.zztong.hp.trans.model;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.math.BigDecimal;

/**
 * @author sxshi on 2017/3/1.
 * @email:emotiona_xiaoshi@126.com
 * @describe:Describe the function  of the current class
 */

public class MicroSuperFeeBean extends ResponseBean{
    private String terminalId;
    /** 手续费,单位：分 **/
    private BigDecimal fee;

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public BigDecimal getFee() {
        return fee;
    }

    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    @Override
    public String toString() {
        return "MicroSuperFeeBean{" +
                "terminalId='" + terminalId + '\'' +
                ", fee=" + fee +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.terminalId);
        dest.writeSerializable(this.fee);
    }

    public MicroSuperFeeBean() {
    }

    protected MicroSuperFeeBean(Parcel in) {
        super(in);
        this.terminalId = in.readString();
        this.fee = (BigDecimal) in.readSerializable();
    }

    public static final Creator<MicroSuperFeeBean> CREATOR = new Creator<MicroSuperFeeBean>() {
        @Override
        public MicroSuperFeeBean createFromParcel(Parcel source) {
            return new MicroSuperFeeBean(source);
        }

        @Override
        public MicroSuperFeeBean[] newArray(int size) {
            return new MicroSuperFeeBean[size];
        }
    };
}
